#include<iostream>
#include<string>
#include<functional>

void print(const char* str,int num)
{
  std::cout<<str<<num<<std::endl;
}

//测试bind
int main()
{
  auto func=std::bind(print,"nihao",std::placeholders::_1);
  print("nihao",10);
  func(23);//包装器 参数绑定

  return 0;
}
